package com.warrior.gatherclient.service.impl;

import com.warrior.gatherclient.service.SystemInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import oshi.SystemInfo;

/**
 * @ClassName SystemInfoServiceImpl.java
 * @Author xujian
 * @Description
 * @CreateTime 2020年12月11日 11:09:00
 */
@Slf4j
@Service
public class SystemInfoServiceImpl implements SystemInfoService {

    private SystemInfo systemInfo;

    @Override
    public SystemInfo getSystemInfo() {
        if (null == systemInfo) {
            systemInfo = new SystemInfo();
        }
        return systemInfo;
    }

}
